#example.com
localhost {

	root * /usr/share/caddy

	# Assets compression.
	encode zstd gzip

	handle /assets/* {
		file_server
	}

	handle /media/* {
		file_server
	}

	reverse_proxy doklika:8000

	# Browser caching.
	@static {
	  file
	  path *.ico *.css *.js *.gif *.webp *.avif *.jpg *.jpeg *.png *.svg *.woff *.woff2
	}
	#header @static Cache-Control max-age=5184000 # 60 days
}
